package game;

public class Card 
{
	private int rank, suit;
	private static String[] allSuits = { "heart",
									   "spade",
									   "diamond",
									   "club" };
	private static String[] allRanks = { "Ace",
										  "2",
										  "3",
										  "4",
										  "5",
										  "6",
										  "7",
										  "8",
										  "9",
										  "10",
										  "Jack",
										  "Queen",
										  "King", };
	
	public Card(int suit, int rank)
	{
		this.rank = rank;
		this.suit = suit;
	}
	
	public static String retRankAsStr(int iRank)
	{
		return allRanks[iRank];
	}
	
	@Override
	public String toString()
	{
		return allRanks[rank] + " of " + allSuits[suit];
	}
	
	public int getRank() 
	{
		return rank;
	}

	public int getSuit() 
	{
		return suit;
	}
}
